<?php
	class Xcode6Action extends Action{
	public function Xcode6() {
		$stu = D ( 'CourseView' );
		$id = I ( 'id' );
		$map ['itemid'] = $id;
		$list=$stu->where($map)->select();
		$this->assign('list',$list);
		if ($list == null) {
			echo "没有该视频";
		} else {
				$id1=I('id1');
				$map['index1']=$id1;
				$Vurl = $stu->where ( $map )->find ();
				$this->assign ( 'Vurl', $Vurl );
				$this->display ();
			}
		}
		
			
		public function select() {
			$stu = D ( "CourseView" );
			$title = $_POST['title'];
			$map ['title'] = array (
					'like',"%".$title."%"
			);
			$list = $stu->where ( $map )->select ();
			if ($list) {
				$this->assign ( 'list', $list );
				$this->display ();
			} else {
				echo "没找到";
			}
		
		}
	} 
?>